import request from '@/utils/request'

// 查询协议信息管理列表
export function listAgreementInfo(query) {
  return request({
    url: '/basic/agreementInfo/list',
    method: 'get',
    params: query
  })
}

// 查询协议信息管理详细
export function getAgreementInfo(id) {
  return request({
    url: '/basic/agreementInfo/' + id,
    method: 'get'
  })
}

// 新增协议信息管理
export function addAgreementInfo(data) {
  return request({
    url: '/basic/agreementInfo',
    method: 'post',
    data: data
  })
}

// 修改协议信息管理
export function updateAgreementInfo(data) {
  return request({
    url: '/basic/agreementInfo',
    method: 'put',
    data: data
  })
}

// 删除协议信息管理
export function delAgreementInfo(id) {
  return request({
    url: '/basic/agreementInfo/' + id,
    method: 'delete'
  })
}

// 导出协议信息管理
export function exportAgreementInfo(query) {
  return request({
    url: '/basic/agreementInfo/export',
    method: 'get',
    params: query
  })
}